<?php

namespace app\common\model\search;

trait ShoppingClassifySearch
{
    private bool $enterSearch = false;

    public function searchNameAttr($query, $value, $data)
    {
        $this->enterSearch = true;
        return $query->whereLike('name', $value);
    }
}